package com.totoro.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.totoro.domain.Department;
import com.totoro.domain.School;

public class DepartmentServiceTest {
	
	public static void main(String[] args){
		ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		System.out.println(ctx);
		
		DepartmentService ds = ctx.getBean(DepartmentService.class);
		Department d = new Department();
		School s = new School();
		s.setId(16);
		d.setSchool(s);
		d.setDescription("信管教研室");
		
	}
}
